package com.hp.ssmp.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class TNews {
  @TableId(value = "NEWSID",type = IdType.AUTO)
  private Long newsid;
  private String newtitle;
  private Long newstype;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date newstime;
  private String newscontent;


  public Long getNewsid() {
    return newsid;
  }

  public void setNewsid(Long newsid) {
    this.newsid = newsid;
  }


  public String getNewtitle() {
    return newtitle;
  }

  public void setNewtitle(String newtitle) {
    this.newtitle = newtitle;
  }


  public Long getNewstype() {
    return newstype;
  }

  public void setNewstype(Long newstype) {
    this.newstype = newstype;
  }


  public Date getNewstime() {
    return newstime;
  }

  public void setNewstime(Date newstime) {
    this.newstime = newstime;
  }


  public String getNewscontent() {
    return newscontent;
  }

  public void setNewscontent(String newscontent) {
    this.newscontent = newscontent;
  }

}
